package com.usian.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.usian.pojos.Department;
import com.usian.pojos.Employee;
import com.usian.pojos.Post;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface EmployeeService extends IService<Employee> {

    /**
     * 查询员工信息
     * @return
     */
    public List<Employee> findEmployee(Employee one);

    /**
     * 添加员工信息
     * @param employee
     */
    public void addEmployee(Employee employee);

    /**
     * 修改员工信息
     * @param employee
     */
    public void updateEmployee(Employee employee);

    /**
     * 删除员工信息
     * @param id
     */
    public void delEmployee(Integer id);

    /**
     * 登录
     * @param employee
     */
    int login(Employee employee);

    List<Department> findDList();

    List<Post> findPList();

}
